<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/11/23
  Time: 21:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://www.springframework.org/security/tags" prefix="security"%>
<html>
<head>
    <title>登录页</title>
</head>
<body>

<form action="${pageContext.request.contextPath}/login" method="post">
    <%--添加这个，支持csrf--%>
    <security:csrfInput/>

    <input type="text" name="username" placeholder="用户名">

    <input type="password" name="password" placeholder="密码">

    <label><input type="checkbox" name="remember-me" value="true"> 记住 下次自动登录</label>

    <button type="submit" class="btn btn-primary btn-block btn-flat">登录</button>

</form>

</body>
</html>
